﻿using Furion.DynamicApiController;
using HOPU.OnlineSchool.Application.Teacher.Dtos;
using HOPU.OnlineSchool.Application.Teacher.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HOPU.OnlineSchool.Application.Teacher
{
    /// <summary>
    ///  讲师相关接口
    /// </summary>
    public class TeacherAppSercice: IDynamicApiController
    {
        
        private readonly ITeacherService _teacherService;

        public TeacherAppSercice(ITeacherService teacherService)
        {
            _teacherService = teacherService;
        }
        /// <summary>
        /// 分页查询信息
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task<PagedList<TeacherListOutput>> List(int page, int limit, TeacherListInput input)
        {
            var list = await _teacherService.GetTeacherAsnyc(page, limit, input);
            return list;
        }
    }
}
